import request from '@/utils/request'
import requestActive from '@/utils/requestActive'
import qs from 'qs'

/**
 * @description: 安全生产报警-视频报警列表
 * @return {string}
 */
export const getAqVideoAlarmList = (data) => {
  return request({
    url: '/admin/aq/AqAlarm/aqVideoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-传感器报警列表
 * @return {string}
 */
export const getAqMonitorAlarmList = (data) => {
  return request({
    url: '/admin/aq/AqAlarm/aqMonitorAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-视频报警详情
 * @return {string}
 */
export const getAqVideoAlarmDetails = (data) => {
  return request({
    url: '/admin/aq/AqAlarm/aqVideoAlarmDetails',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-传感器报警详情
 * @return {string}
 */
export const getAqMonitorAlarmDetails = (data) => {
  return request({
    url: '/admin/aq/AqAlarm/aqMonitorAlarmDetails',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-报送集团
 * @return {string}
 */
export const submitGroup = (data) => {
  return request({
    url: '/admin/aq/AqAlarm/submitGroup',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 历史流程
 *
 * @export
 * @return {*}
 */
export function getProcessInstanceTaskHistory(data) {
  return requestActive({
    url: '/activiti/activitiHistory/getProcessInstanceTaskHistory',
    method: 'GET',
    params: data
  })
}

/**
 * @description: 安全生产报警-解除报警
 * @return {string}
 */
export const rescindAlarm = (data) => {
  return request({
    url: '/admin/aq/AqAlarm/rescindAlarm',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取报警列表--能源
 * @export
 * @params {*}
 * @return {*}
 */
export const MonitorAalarmList = (data) => {
  return request({
    url: '/admin/ny/MeasureNew/MonitorAalarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取报警详情--能源
 * @export
 * @params {*}
 * @return {*}
 */
export const MonitorAalarmInfo = (data) => {
  return request({
    url: '/admin/ny/MeasureNew/MonitorAalarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 报送集团 --能源
 * @export
 * @params {*}
 * @return {*}
 */
export const reportBlocMonitorAalarmInfo = (data) => {
  return request({
    url: '/admin/ny/MeasureNew/reportBlocMonitorAalarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 解除报警 --能源
 * @export
 * @params {*}
 * @return {*}
 */
export const RemoveHandleStatus = (data) => {
  return request({
    url: '/admin/ny/MeasureNew/RemoveHandleStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 消防监控预警-视频报警列表
 * @return {string}
 */
export const plateVideoAlarmList = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/plateVideoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 消防监控预警-传感器报警列表
 * @return {string}
 */
export const monitorDeviceAlarmList = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/monitorDeviceAlarmListIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 消防监控预警-报送集团
 * @return {string}
 */
export const submitGroupxf = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/submitGroup',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 消防监控预警-视频报警详情
 * @return {string}
 */
export const plateVideoAlarmInfo = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/plateVideoAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 消防监控预警-传感器报警详情
 * @return {string}
 */
export const monitorDeviceAlarmInfo = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/monitorDeviceAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 消防监控预警-解除视频报警
 * @return {string}
 */
export const editVideoAlarmStatus = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/editVideoAlarmStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 消防监控预警-解除传感器报警
 * @return {string}
 */
export const editDeviceAlarmStatus = (data) => {
  return request({
    url: '/admin/xf/xfMonitorWarning/editDeviceAlarmStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--固危废报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const plateWasteAlarmList = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/plateWasteAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--传感器报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const outputAlarmList = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/outputAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--视频报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const plateVideoAlarmListHB = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/plateVideoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--设备联动报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const plateDeviceAlarmList = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/plateDeviceAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--固危废报警解除报警
 * @export
 * @params {*}
 * @return {*}
 */
export const submitGroupHB = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/submitGroup',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--传感器报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const outputAlarmInfo = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/outputAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 报警预警管理--监控平台报警--视频报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const plateVideoAlarmInfoHB = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/plateVideoAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 报警预警管理--监控平台报警--设备联动报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const plateDeviceAlarmInfo = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/plateDeviceAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--固危废报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const plateWasteAlarmInfo = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/plateWasteAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--监控平台报警--固危废报警解除报警
 * @export
 * @params {*}
 * @return {*}
 */
export const editWasteAlarmStatus = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/editWasteAlarmStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 报警预警管理--监控平台报警--传感器报警解除报警
 * @export
 * @params {*}
 * @return {*}
 */
export const editOutputAlarmStatus = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/editOutputAlarmStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 报警预警管理--监控平台报警--设备联动报警解除报警
 * @export
 * @params {*}
 * @return {*}
 */
export const editPlateDeviceAlarmStatus = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/editPlateDeviceAlarmStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 报警预警管理--监控平台报警--固危废报警解除报警
 * @export
 * @params {*}
 * @return {*}
 */
export const editWasteAlarmStatusHB = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateMonitor/editWasteAlarmStatus',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--传感器报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const outputAlarmListHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/outputAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--传感器报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const outputAlarmInfoHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/outputAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--视频报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const plateVideoAlarmListHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/plateVideoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--视频报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const plateVideoAlarmInfoHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/plateVideoAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--设备联动报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const plateDeviceAlarmListHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/plateDeviceAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--设备联动报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const plateDeviceAlarmInfoHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/plateDeviceAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--固危废报警列表
 * @export
 * @params {*}
 * @return {*}
 */
export const plateWasteAlarmListHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/plateWasteAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 报警预警管理--企业平台报警--固危废报警详情
 * @export
 * @params {*}
 * @return {*}
 */
export const plateWasteAlarmInfoHBQY = (data) => {
  return request({
    url: '/admin/hb/hbAlarmPlateCompany/plateWasteAlarmInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/** ************************************************************************************** */
/**
 * @description: 安全生产报警-企业综合排名
 * @return {string}
 */
export const aqCompanyRank = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqCompanyRank',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-预警报警变化趋势
 * @return {string}
 */
export const aqAlarmChange = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqAlarmChange',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-事件类型分析
 * @return {string}
 */
export const aqEventTypeAnalysis = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqEventTypeAnalysis',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-报警级别统计
 * @return {string}
 */
export const aqAlarmLevelAnalysis = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqAlarmLevelAnalysis',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-报警类别分布列表
 * @return {string}
 */
export const aqEventTypeAnalysisList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqEventTypeAnalysisList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-报警综合分析
 * @return {string}
 */
export const aqAnalysis = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqAnalysis',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-报警来源分析
 * @return {string}
 */
export const aqSourceAnalysis = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqSourceAnalysis',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-报警时段分析
 * @return {string}
 */
export const aqAlarmTimePeriod = (data) => {
  return request({
    url: '/admin/aq/AqAlarmAnalysis/aqAlarmTimePeriod',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-视频报警规则列表
 * @return {string}
 */
export const cameraAlarmList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/cameraAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-视频报警规则详情
 * @return {string}
 */
export const aqAlarmCamerarule = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/aqAlarmCamerarule',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-删除视频报警规则
 * @return {string}
 */
export const delCameraAlarmRule = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/delCameraAlarmRule',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-设备清单上方的规则信息
 * @return {string}
 */
export const cameraAlarmRuleDetail = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/cameraAlarmRuleDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-查看应用报警规则的详情（企业清单）
 * @return {string}
 */
export const cameraAlarmRuleCompanyList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/cameraAlarmRuleCompanyList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-查看应用报警规则的详情（设备清单）
 * @return {string}
 */
export const cameraAlarmRuleDeviceList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/cameraAlarmRuleDeviceList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-应用报警规则的企业和设备全部是否勾选
 * @return {string}
 */
export const cameraCompanyAndDeviceListWithAlarmAll = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/cameraCompanyAndDeviceListWithAlarmAll',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-编辑视频报警规则
 * @return {string}
 */
export const upCameraAlarmRule = (data) => {
  return request({
    url: '/admin/aq/AqAlarmCameraRule/upCameraAlarmRule',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-传感器报警规则列表
 * @return {string}
 */
export const sensorAlarmList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/sensorAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-传感器报警规则详情
 * @return {string}
 */
export const sensorAlarmRuleDetail = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/sensorAlarmRuleDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-删除传感器报警规则
 * @return {string}
 */
export const delSensorAlarmRule = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/delSensorAlarmRule',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-查看应用报警规则的详情（设备清单）
 * @return {string}
 */
export const alarmRuleDeviceList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/alarmRuleDeviceList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-设备清单上方的规则信息(规则名称 规则内容 事件类型等)
 * @return {string}
 */
export const alarmRuleDetail = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/alarmRuleDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-查看应用报警规则的详情（企业清单）
 * @return {string}
 */
export const alarmRuleCompanyList = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/alarmRuleCompanyList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-显示应用报警规则的企业和设备的列表
 * @return {string}
 */
export const companyAndDeviceListWithAlarm = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/companyAndDeviceListWithAlarm',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-应用报警规则的企业和设备全部是否勾选
 * @return {string}
 */
export const companyAndDeviceListWithAlarmAll = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/companyAndDeviceListWithAlarmAll',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-传感器报警新增规则(以及编辑修改规则)
 * @return {string}
 */
export const addSensorAlarmRule = (data) => {
  return request({
    url: '/admin/aq/AqAlarmRule/addSensorAlarmRule',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-信息推送管理列表
 * @return {string}
 */
export const aqInformationPushList = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/aqInformationPushList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-信息推送送用户列表
 * @return {string}
 */
export const informationPushUserList = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/aqInformationPushUserList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-查看息推送管理详情
 * @return {string}
 */
export const selAqInformationPush = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/selAqInformationPush',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-新增信息推送管理
 * @return {string}
 */
export const addAqInformationPush = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/addAqInformationPush',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * @description: 安全生产报警-删除息推送管理
 * @return {string}
 */
export const delAqInformationPush = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/delAqInformationPush',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-监测指标
 * @return {string}
 */
export const getmonitorItem = (data) => {
  return request({
    url: '/admin/RefData/getmonitorItem',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-信息推送用户列表
 * @return {string}
 */
export const aqInformationPushUserList = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/aqInformationPushUserList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全生产报警-信息推送用户列表
 * @return {string}
 */
export const addAqInformationPushUser = (data) => {
  return request({
    url: '/admin/aq/AqInformationPush/addAqInformationPushUser',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取传感器报警 - 检测指标列表
 * @returns {*}
 */
export const getTargetDropList = () => {
  return request({
    url: '/admin/hb/hbRefCode/targetDrop',
    method: 'POST',
  })
}

/**
 * 获取生产设备 治理设备 下拉数据列表
 * @param data
 * @returns {*}
 */
export const getDeviceDropList = (data) => {
  return request({
    url: '/admin/hb/hbRefCode/deviceDrop',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取监测设备下拉数据列表
 * @param data
 * @returns {*}
 */
export const getOutputDropList = (data) => {
  return request({
    url: '/admin/hb/hbRefCode/outputDrop',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取 产生车间 数据列表
 * @returns {*}
 */
export const getGenerateDropList = () => {
  return request({
    url: '/admin/hb/hbRefCode/generateDrop',
    method: 'POST',
  })
}

/**
 * 获取废物名称数据列表
 * @returns {*}
 */
export const getWasteCategoryDropList = () => {
  return request({
    url: '/admin/hb/hbRefCode/wasteCategoryDrop',
    method: 'POST',
  })
}

/**
 * 根据废物名称id 获取 相对应下的列表数据
 * @param data
 * @returns {*}
 */
export const getHbRefCodeWasteDropList = (data) => {
  return request({
    url: '/admin/hb/hbRefCode/wasteDrop',
    method: 'POST',
    data: qs.stringify(data)
  })
}

